//
//  SQLiteDataBaseManager.h
//  18-SQLite
//
//  Created by dllo on 16/8/8.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "sqlite3.h"
//#import "Student.h"
@class Student;
NS_ASSUME_NONNULL_BEGIN
@interface SQLiteDataBaseManager : NSObject {
    sqlite3 *dbPoint;
}
//单利方法，一个工程中只包含这一个对象
+ (SQLiteDataBaseManager *)shareManager;

- (BOOL)openSQLite3;
- (BOOL)closeSQLite3;
- (BOOL)createSQLite;
- (BOOL)insertStu:(Student *)stu;
- (BOOL)deleteStu:(Student *)stu;
//删除全部
- (BOOL)deleteAll;
- (BOOL)updateOldName:(NSString *)oldName newName:(NSString *)newName;
- (__kindof NSArray *)selectAll;


@end
NS_ASSUME_NONNULL_END